
	 <div class="text-right padd-b">
	 	<a href="http://localhost:8080/RDCNEW/admin/control/add/id_cate/<?php echo $this->id_cate?>" class="btn btn-primary btn-sm" active" role="button"><span class="glyphicon glyphicon-pencil ">&nbsp;</span>Thêm Bài Viết</a>
	 </div>  

             <table class="table  table-condensed table-striped">
                            <thead>  
                              <tr class="success ">  
                                <th class="col-md-1">#</th>  
                                <th class="col-md-2">Banner</th>  
                                <th class="col-md-4">Link</th>  
                                <th class="col-md-2">	<span class="glyphicon glyphicon-wrench ">&nbsp;</span>Edit</th>
                                <th class="col-md-2"><span class="glyphicon glyphicon-remove ">&nbsp;</span>Delete</th>
                              </tr>  
                            </thead>  
                            <tbody>  
                          
                            <?php 
                            $i=1;
                            $currentPage =$this->pages->getCurrentPageNumber();
                            $itemPerPage =$this->pages->getItemCountPerPage();
                            
									foreach ($this->pages as $page){
								$index= $i+($currentPage-1)*$itemPerPage;
										echo "<tr>";
								 		echo "<td>".$index."</td>";
										echo "<td ><img style='width:100px' src='".$page['image']."' alt='...' class='img-rounded'></td>";
									   echo "<td>".$page['link']."</td>";
									    echo  "<td><a href='".HOST_PATH.'admin/banner/edit/id/'.$page['id']."' class='btn btn-info btn-sm' role='button'>Edit</a></td>";
										echo  "<td><a datalink='".HOST_PATH.'admin/banner/delete/id/'.$page['id']."' class='btn btn-danger btn-sm delete-button' role='button'>Delete</a></td>";
										echo "</tr>";
										$i++;
									}
	 							
                            
                            ?>
                            </tbody> 
               </table>
				  <?php

      				 echo $this->paginationControl($this->pages, 'Sliding' , 'pagination.phtml');
     				
				?>